/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package enterprise.servlet_stateless_ejb;

import java.util.Random;

/**
 *
 * @author jzou
 */
public class NormalDistribution {

    public static void main(String[] args) {
        Random r = new Random();
        for (int i = 0; i < 1000; i++) {
            int friendNumber = (int) Math.round(r.nextGaussian() * 25 - 15);
            if ( friendNumber < 0 )
                friendNumber=0;
            System.out.println(friendNumber);
        }
    }
}
